home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / diag / memsz153.zip / ENGLISH.CMD < prev    next >
OS/2 REXX Batch file  |  1992-12-02  |  1KB  |  54 lines

  1. /* ENGLISH.CMD: Install MEMSIZE in English. */
  2.  
  3. /* Load REXXUTIL */
  4. Call rxfuncadd sysloadfuncs, rexxutil, sysloadfuncs
  5. Call sysloadfuncs
  6.  
  7. Call SysCls
  8. Say 'Installing MEMSIZE...';
  9. Say '';
  10.  
  11. Say 'Please enter the full name of the directory to which';
  12. Say '  you want MEMSIZE installed (default C:\OS2\APPS): ';
  13. Pull Directory
  14. If Directory = "" Then Directory='C:\OS2\APPS'
  15. Result = SysFileTree(Directory, 'Dirs', 'D')
  16. If Dirs.0 = 0 Then Call SysMkDir Directory;
  17.  
  18. Say 'Do you wish to install to the startup folder? (Y/N)';
  19. Pull YesNo
  20. If YesNo = "Y" Then
  21.   Do
  22.   Folder='<WP_START>'
  23.   Say 'Object will be placed in the startup folder.';
  24.   End
  25. Else
  26.   Do
  27.   Folder='<WP_DESKTOP>'
  28.   Say 'Object will be placed on the desktop.';
  29.   End
  30.  
  31. Say 'Copying MEMSIZE to ' Directory '...';
  32. Say '';
  33. Language='ENGLISH'
  34. Copy MEMSIZE.EXE Directory
  35. Copy Language".DLL" Directory"\MEMSIZE.DLL"
  36. Copy Language".HLP" Directory"\MEMSIZE.HLP"
  37.  
  38. Say 'Creating program object...';
  39. Say ''; 
  40.  
  41. Type='WPProgram'
  42. Title='System Resources'
  43. Parms='MINWIN=DESKTOP;PROGTYPE=PM;EXENAME='Directory'\MEMSIZE.EXE;STARTUPDIR='Directory';OBJECTID=<MEMSIZE>;NOPRINT=YES'
  44.  
  45. Result=SysCreateObject(Type,Title,Folder,Parms)
  46.  
  47. If Result=1 Then 
  48.   Call charout ,'...   Object created!  Done.'
  49. Else             
  50.   Call charout ,'...   Not created! Return code='Result
  51.  
  52. Exit
  53.   
  54.